export enum RefundStatuses {
  NotRefunded = 0, // "未退款",
  InApplication = 1, // "申请中",
  Refunded = 2, // "已退款",
  RefundInProgress = 3, // "退款中",
  ToBeReturned = 4, // "待退货",
  Returning = 5, // "退货中",
  RefundCancelled = 6, // "退款取消",
}

// Unclear what can be null
export type RefundDetailResponse = {
  orderNo: string;
  refundPrice: string;
  refundDetails: string;
  refundReasonWap: string;
  refundReasonWapExplain: string;
  refundApplicationTime: string; // timestamps below all as strings
  agreedReturnTime: string;
  returnEndTime: null;
  pickUpStartTimeRange: null;
  pickUpEndTimeRange: null;
  refundReason: string | null;
  paid: boolean;
  // status: 3; // Used for anything?
  refundStatus: RefundStatuses;
  returnOrderNo: null;
  consigneeName: string;
  consigneePhone: string;
  consigneeAddress: string;
  deliveryCountdown: number | null;
  pickUpDate: string | null;
  pickUpStartTime: string | null;
  pickUpEndTime: string | null;
  isAfterSalesTime: boolean;
  routesList: {
    acceptAddress: string;
    acceptTime: string;
    opcode: string;
    remark: string;
  } | null;
  storeOrderStatuseList: {
    oid: number;
    changeType: string;
    // type: 1; // Not used
    changeMessage: string;
    createTime: string;
  }[];
  waybill?: string;
};
